﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SWDataDB.Models;
using SWDataDB.BLL;
using SWDataDB.DAL;
using System.Data;

public partial class Admin_add_addGP : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void submit_Click(object sender, EventArgs e)
    {
        GP_INFO_TBL gpInfo = new GP_INFO_TBL();
        GPInfo kc_in = new GPInfo();

        gpInfo.O_ZL_FILE_ID = Request.Form["ZL_FILE_ID"];

        gpInfo.O_GP_NAME = Request.Form["GP_NAME"];
        gpInfo.O_GP_CODE = Request.Form["GP_CODE"];


        gpInfo.O_PM_PATH_NAME = Request.Form["PM_PATH_NAME"];
        gpInfo.O_PM_PATH_NUM = Request.Form["PM_PATH_NUM"];
        gpInfo.O_FEATURE = this.FEATURE.InnerText;
        gpInfo.O_DESCRIB = this.DESCRIB.InnerText;





        //gpInfo.O_IMAGE = Request.Form["IMAGE"];
        gpInfo.O_JD_NAME = Request.Form["JD_NAME"];
        gpInfo.O_JGGZ = Request.Form["JGGZ"];

        gpInfo.O_JD_PEOPLE = Request.Form["JD_PEOPLE"];


        gpInfo.O_JD_DATE = Request.Form["JD_DATE"];

        gpInfo.O_LR_PEOPLE = Request.Form["LR_PEOPLE"];
        gpInfo.O_LR_DATE = Request.Form["LR_DATE"];


        if (kc_in.AddGPInfo(gpInfo) == 1)
        {
            //bind();
            Response.Write("<script language=javascript>alert('添加成功！');location='../Manage/GPManage.aspx'</script>");
            //Response.Redirect("ZLManage.aspx");
        }
        else
        {
            Response.Write("<script language=javascript>alert('添加失败！');location='../Manage/GPManage.aspx'</script>");
        }
    }
}